integration testing code example